<script setup>
import { ref, computed, watch, watchEffect } from 'vue'
import SoltSon from '@/components/SoltSon.vue'
const count = ref(0); 
/* //在创建阶段
const doubleCount = computed(() => count.value * 2);


watch(count, (newValue, oldValue) => {
  console.log('watch : count被改变');
}, { immediate: true }
);

//watchEffect:
onMounted( ()=> {
  console.log('挂载后');
  watchEffect(count, (newValue, oldValue) => {
    console.log('watchEffect: count被改变');
  })
} 
)*/




</script>

<template>
<solt-son>
  <template #sl="{clas,msg}">
    {{ clas }}-{{ msg }}
  </template>
</solt-son>
  
</template>

